﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace TimHeuer.WindowsLiveWriter.S34Writer
{
    internal static class Utilities
    {
        internal static string GetKeyFromFilePath(string filePath)
        {
            return GetKeyFromFileName(Path.GetFileName(filePath));
        }

        internal static string GetKeyFromFileName(string fileName)
        {
            if (String.IsNullOrEmpty(fileName))
            {
                return String.Empty;
            }

            return fileName.Replace(" ", "_");
        }
    }
}
